package com.gohome.gohomechat.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import com.gohome.gohomechat.spannable.ISpanClick;
import com.gohome.gohomechat.ui.adapter.FavortListAdapter;

/**
 * Created by dllo on 16/3/14.
 */
public class FavortListView extends TextView {
    private ISpanClick mSpanClickListener;


    public void setSpanClickListener(ISpanClick listener){
        mSpanClickListener = listener;
    }
    public ISpanClick getSpanClickListener(){
        return  mSpanClickListener;
    }
    public FavortListView(Context context) {
        super(context);
    }

    public FavortListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public FavortListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
    public void setAdapter(FavortListAdapter adapter){
        adapter.bindListView(this);
    }

}
